package com.maybach.common.enums;

/**
 * Created by zhaoshuai on 16/3/2.
 */
public enum FinancePayWayEnum {

    weixin("微信"),
    alipay("支付宝"),
    tenpay("财付通"),
    transfer("银行转账");

    private String desc;

    FinancePayWayEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByName(String name) {
        for (FinancePayWayEnum payWayEnum : FinancePayWayEnum.values()) {
            if (payWayEnum.name().equals(name)) {
                return payWayEnum.desc;
            }
        }
        return null;
    }
}
